package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.PageBean;
import pcjavanet.mobilesell.model.Sale;
import pcjavanet.mobilesell.model.SaleExample;

public interface SaleMapper {
    int countByExample(SaleExample example);

    int deleteByExample(SaleExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Sale record);

    int insertSelective(Sale record);

    List<Sale> selectByExample(SaleExample example);

    Sale selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Sale record, @Param("example") SaleExample example);

    int updateByExample(@Param("record") Sale record, @Param("example") SaleExample example);

    int updateByPrimaryKeySelective(Sale record);

    int updateByPrimaryKey(Sale record);

    List<Sale> getOnePageBeans(@Param("example") SaleExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") SaleExample example, @Param("pageBean") PageBean pageBean);

    List<Sale> selectByExamplePage(@Param("example") SaleExample example, @Param("pageBean") PageBean pageBean);
}